package com.hzdesk.media.koreabatchmatvector.fragment.fragment_modle;

import android.content.Context;

import com.hzdesk.media.koreabatchmatvector.bean.ConfigFileBean;
import com.hzdesk.media.koreabatchmatvector.bean.MeetInfoBean;
import com.hzdesk.media.koreabatchmatvector.dao.MeetInfoDaoUtils;
import com.hzdesk.media.koreabatchmatvector.fragment.fragment_contract.SetContract;
import com.hzdesk.media.koreabatchmatvector.utils.DataConversionUtils;

/**
 * Created by Administrator on 2018/6/28.
 * 杭州席媒科技有限公司  Developers  刘传华  10
 * 佛祖镇楼 bug辟易
 */

public class SetModle implements SetContract.ISetModle{

    @Override
    public void SaveConfigFileDate(ConfigFileBean mConfigFileBean,Context mContext) {
        DataConversionUtils.ConversionUtilsMeetInfo(mConfigFileBean,mContext);
        DataConversionUtils.ConversionUtilsMouseUserDevicesinfo(mConfigFileBean,mContext);
    }

    @Override
    public void SaveMeetName(Context mContext, String meetName) {
        MeetInfoDaoUtils meetInfoDaoUtils =   new MeetInfoDaoUtils(mContext);
        MeetInfoBean meetInfoBean = new MeetInfoBean(null,null,null,null,0,null,null,null,meetName,0);
        meetInfoDaoUtils.insertMeetInfo(meetInfoBean);
    }
}
